package cn.yunhe.action;

import cn.yunhe.pojo.Book;
import cn.yunhe.service.BookService;
import cn.yunhe.util.BaseAction;

public class SearchBookAction extends BaseAction {
    private int bid;
    private Book book;

    BookService bookService=new BookService();
    public String searchBook(){
        book=bookService.searchBook(bid);
        return SUCCESS;
    }

    public int getBid() {
        return bid;
    }

    public void setBid(int bid) {
        this.bid = bid;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }
}
